Newer
Older
Digital_Repository / Misc / Mass downloads / combine OAI
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BBEditDocumentType</key>
	<string>TextTransform</string>
	<key>TextTransformComponents</key>
	<array>
		<dict>
			<key>ComponentArguments</key>
			<dict>
				<key>CaseSensitive</key>
				<false/>
				<key>Comment</key>
				<string>Strip out all intermediate OAI-PMH XML headers.</string>
				<key>MatchWords</key>
				<false/>
				<key>ReplaceString</key>
				<string></string>
				<key>SearchString</key>
				<string>  &lt;resumptionToken&gt;[^&lt;]+&lt;/resumptionToken&gt;&lt;/ListIdentifiers&gt;&lt;/OAI-PMH&gt;&lt;\?xml version="1\.0" encoding="UTF-8" \?&gt;\r&lt;\?xml-stylesheet type='text/xsl' href='/oai2\.xsl' \?&gt;\r\r&lt;OAI-PMH xmlns[^&gt;]+&gt;\r  &lt;responseDate&gt;[^&lt;]+&lt;/responseDate&gt;\r  &lt;request verb="ListIdentifiers" resumptionToken="[^"]+"&gt;[^&lt;]+&lt;/request&gt;\r  &lt;ListIdentifiers&gt;\r</string>
				<key>UseGrep</key>
				<true/>
			</dict>
			<key>ComponentName</key>
			<string>ReplaceAll</string>
		</dict>
		<dict>
			<key>ComponentArguments</key>
			<dict>
				<key>CaseSensitive</key>
				<false/>
				<key>Comment</key>
				<string>Add line break between last &lt;header&gt; and prologue of file.</string>
				<key>MatchWords</key>
				<false/>
				<key>ReplaceString</key>
				<string>\r&amp;</string>
				<key>SearchString</key>
				<string>&lt;/ListIdentifiers&gt;&lt;/OAI-PMH&gt;\Z</string>
				<key>UseGrep</key>
				<true/>
			</dict>
			<key>ComponentName</key>
			<string>ReplaceAll</string>
		</dict>
		<dict>
			<key>ComponentArguments</key>
			<dict>
				<key>CaseSensitive</key>
				<false/>
				<key>Comment</key>
				<string>Strip line breaks from &lt;header&gt; elements (makes them one line each).</string>
				<key>MatchWords</key>
				<false/>
				<key>ReplaceString</key>
				<string>\1</string>
				<key>SearchString</key>
				<string>\r\s+(&lt;(identifier|datestamp|setSpec)&gt;.*&lt;/\2&gt;)</string>
				<key>UseGrep</key>
				<true/>
			</dict>
			<key>ComponentName</key>
			<string>ReplaceAll</string>
		</dict>
	</array>
	<key>TextTransformOptions</key>
	<dict>
		<key>EnableFileFilter</key>
		<false/>
		<key>SaveMode</key>
		<string>no  </string>
		<key>SearchInvisibles</key>
		<false/>
		<key>SearchRecursive</key>
		<true/>
		<key>TextFilesOnly</key>
		<true/>
	</dict>
	<key>TextTransformSources</key>
	<array/>
</dict>
</plist>